package com.example.actionsignin.http;

import com.example.actionsignin.entity.FaceEntity;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;

/**
 * Created by 旭 on 2017/11/9/009.
 */

public interface FaceApiService {

    //人脸识别
    @Multipart
    @POST("/facepp/v3/compare")
    Observable<FaceEntity> face(@Part("api_key") String api_key, @Part("api_secret") String api_secret, @Part("image_url1") String url , @Part("image_file2\"; filename=\"image_file2.jpg") RequestBody body);
}
